<template>
  <div>
    <router-view active-color="#cc0000" />

    <van-tabbar active-color="#cc0000" route>
      <van-tabbar-item replace to="/index" icon="wap-home-o"
        >首页</van-tabbar-item
      >
      <van-tabbar-item replace to="/happy" icon="smile-comment-o"
        >娱乐</van-tabbar-item
      >
      <van-tabbar-item replace to="/mine" icon="user-circle-o"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>
<script>
// import { defineComponent } from '@vue/composition-api'

export default {
  name: "indexFooter",
  data() {
    return {
      active: "red",
      icon: "",
    };
  },
  methods: {
    onChange(index) {
      ({ type: "primary", message: index, color: "red" });
    },
  },
};
</script>
<style scoped lang="less">
.van-tabbar-item__text:active {
  color: red;
}
</style>
